package com.tao.interface_.InterfacePoly;

public class InterfacePolyPass {

    public static void main(String[] args) {

        A3 a = new AAA();
        B3 b = new AAA();
    }
}
//类AAA实现了接口B3,而B3继承了接口A2，所以类AAA也实现接口A2，这就是多态传递
interface A3{
    void hi();
}
interface B3 extends A3{

}
class AAA implements B3{
    @Override
    public void hi() {

    }
}